renaming table name entity framework code first fluent api

99

renaming table name entity framework code first fluent api -

protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
  //Changing Database table name to Metadata
  modelBuilder.Entity<Metadata>().ToTable("Metadata");
}

Comments

Submit
0 Comments